package com.example.lj.uav.bean;

import android.os.Parcel;
import android.os.Parcelable;

import dji.common.battery.BatteryState;

public class BatteryItem implements Parcelable {
    private BatteryState state;
    private Integer[] cellVoltages;

    public BatteryItem() {
    }

    protected BatteryItem(Parcel in) {
    }

    public static final Creator<BatteryItem> CREATOR = new Creator<BatteryItem>() {
        @Override
        public BatteryItem createFromParcel(Parcel in) {
            return new BatteryItem(in);
        }

        @Override
        public BatteryItem[] newArray(int size) {
            return new BatteryItem[size];
        }
    };

    public BatteryState getState() {
        return state;
    }

    public void setState(BatteryState state) {
        this.state = state;
    }

    public Integer[] getCellVoltages() {
        return cellVoltages;
    }

    public void setCellVoltages(Integer[] cellVoltages) {
        this.cellVoltages = cellVoltages;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
    }
}
